home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !tex / TeXsource / commontex / h / tokenlists < prev    next >
Encoding:
Text File  |  1988-04-08  |  980 b   |  47 lines

  1. /*
  2.  *    Copyright 1986, 1987 Pat Joseph Monardo. All rights reserved.
  3.  *    Copying of this file is granted according to the provisions 
  4.  *    specified in the file COPYING which must accompany this file.
  5.  */
  6.  
  7.  
  8. /*
  9.  *        tokenlists.h
  10.  */
  11.  
  12. ptr        str_toks();
  13. ptr        the_toks();
  14. int        conv_toks();
  15.  
  16. #define    NUMBER_CODE            0
  17. #define    ROMAN_NUMERAL_CODE    1
  18. #define    STRING_CODE            2
  19. #define    MEANING_CODE        3
  20. #define    FONT_NAME_CODE        4
  21. #define    JOB_NAME_CODE        5
  22.  
  23. #define    token_ref_count(T)    token(T)
  24.  
  25. ptr        scan_toks();
  26. int        read_toks();
  27. int        ins_the_toks();
  28. int        print_meaning();
  29.  
  30. int        flush_list();
  31.  
  32. #define    add_token_ref(T) incr(token_ref_count(T))
  33.  
  34. #define    delete_token_ref(T) \
  35.     {if (token_ref_count(T) == NULL) \
  36.         flush_list(T); \
  37.     else decr(token_ref_count(T));}
  38.  
  39. #define    store_new_token(T) \
  40.     {q = new_token(); token_link(p) = q; token(q) = T; p = q;}
  41.  
  42. #define    fast_store_new_token(T) \
  43.     {fast_new_token(q); token_link(p) = q; token(q) = T; p = q;}
  44.  
  45. int        show_token_list();
  46. int        token_show();
  47.